public // 定义法师类
class Mage extends Hero implements Safe {
    private final int damage2;
    private final int damage3;

    public int getDamage2() {
        return damage2;
    }

    public int getDamage3() {
        return damage3;
    }

    public Mage() {
        super("法师", 80, 8, 6);
        this.damage2 = 20;
        this.damage3 = 40;
    }

    @Override
    public void show() {
        System.out.println(name + "成功防御了对方的攻击！");
    }

}